{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "e58af8b3",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "/home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.6) or chardet (3.0.4) doesn't match a supported version!\n",
      "  RequestsDependencyWarning)\n",
      "WARNING:tensorflow:\n",
      "The TensorFlow contrib module will not be included in TensorFlow 2.0.\n",
      "For more information, please see:\n",
      "  * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md\n",
      "  * https://github.com/tensorflow/addons\n",
      "  * https://github.com/tensorflow/io (for I/O related ops)\n",
      "If you depend on functionality not listed there, please file an issue.\n",
      "\n",
      "WARNING:tensorflow:From precision.py:91: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.\n",
      "\n",
      "WARNING:tensorflow:From precision.py:98: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.\n",
      "\n",
      "2021-11-17 14:26:46.467187: W tensorflow/core/platform/profile_utils/cpu_utils.cc:98] Failed to find bogomips in /proc/cpuinfo; cannot determine CPU frequency\n",
      "2021-11-17 14:26:46.476389: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0xaaab06b2eb50 initialized for platform Host (this does not guarantee that XLA will be used). Devices:\n",
      "2021-11-17 14:26:46.476442: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version\n",
      "WARNING:tensorflow:From precision.py:100: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.\n",
      "\n",
      "WARNING:tensorflow:From /home/ma-user/work/model.py:20: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.\n",
      "\n",
      "WARNING:tensorflow:From /home/ma-user/work/model.py:20: The name tf.AUTO_REUSE is deprecated. Please use tf.compat.v1.AUTO_REUSE instead.\n",
      "\n",
      "WARNING:tensorflow:From /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages/tensorflow_core/contrib/layers/python/layers/layers.py:1057: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version.\n",
      "Instructions for updating:\n",
      "Please use `layer.__call__` method instead.\n",
      "WARNING:tensorflow:From /home/ma-user/work/model.py:11: The name tf.get_variable is deprecated. Please use tf.compat.v1.get_variable instead.\n",
      "\n",
      "WARNING:tensorflow:From precision.py:113: The name tf.trainable_variables is deprecated. Please use tf.compat.v1.trainable_variables instead.\n",
      "\n",
      "WARNING:tensorflow:From precision.py:117: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.\n",
      "\n",
      "loaded ./checkpoint/decom_net_train/model.ckpt\n",
      "2021-11-17 14:26:51.553670: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SOURCE is null.\n",
      "2021-11-17 14:26:51.553728: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SINK is null.\n",
      "2021-11-17 14:26:51.554090: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node save/restore_all is null.\n",
      "loaded ./checkpoint/illumination_adjust_net_train/model.ckpt\n",
      "2021-11-17 14:27:01.576380: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SOURCE is null.\n",
      "2021-11-17 14:27:01.576438: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SINK is null.\n",
      "2021-11-17 14:27:01.576638: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node save_1/restore_all is null.\n",
      "loaded ./checkpoint/Restoration_net_train/model.ckpt-999\n",
      "2021-11-17 14:27:02.093164: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SOURCE is null.\n",
      "2021-11-17 14:27:02.093252: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SINK is null.\n",
      "2021-11-17 14:27:02.094020: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node save_2/restore_all is null.\n",
      "Start evaluating!\n",
      "0\n",
      "2021-11-17 14:27:25.853349: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SOURCE is null.\n",
      "2021-11-17 14:27:25.853425: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SINK is null.\n",
      "2021-11-17 14:27:36.441867: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SOURCE is null.\n",
      "2021-11-17 14:27:36.441949: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SINK is null.\n",
      "2021-11-17 14:27:45.137250: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SOURCE is null.\n",
      "2021-11-17 14:27:45.137323: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SINK is null.\n",
      "pnsr: 70.7332 ssim: 0.9219\n",
      "1\n",
      "pnsr: 142.0191 ssim: 1.8055\n",
      "2\n",
      "pnsr: 210.8715 ssim: 2.7091\n",
      "3\n",
      "pnsr: 287.5404 ssim: 3.6673\n",
      "4\n",
      "pnsr: 357.4071 ssim: 4.5403\n",
      "5\n",
      "pnsr: 425.7077 ssim: 5.4056\n",
      "6\n",
      "pnsr: 498.0606 ssim: 6.3301\n",
      "7\n",
      "pnsr: 569.7916 ssim: 7.2573\n",
      "8\n",
      "pnsr: 639.9197 ssim: 8.1276\n",
      "9\n",
      "pnsr: 709.6996 ssim: 9.0861\n",
      "10\n",
      "pnsr: 780.8197 ssim: 10.0605\n",
      "11\n",
      "pnsr: 855.0318 ssim: 11.0274\n",
      "12\n",
      "pnsr: 926.7096 ssim: 11.9706\n",
      "13\n",
      "pnsr: 997.7260 ssim: 12.9136\n",
      "14\n",
      "pnsr: 1065.0178 ssim: 13.8109\n",
      "15\n",
      "pnsr: 1135.9466 ssim: 14.7222\n",
      "16\n",
      "pnsr: 1207.5326 ssim: 15.6552\n",
      "17\n",
      "pnsr: 1280.5487 ssim: 16.5926\n",
      "18\n",
      "pnsr: 1351.3550 ssim: 17.5399\n",
      "19\n",
      "pnsr: 1421.5114 ssim: 18.4427\n",
      "20\n",
      "pnsr: 1491.2229 ssim: 19.3799\n",
      "21\n",
      "pnsr: 1564.2244 ssim: 20.3225\n",
      "22\n",
      "pnsr: 1635.5376 ssim: 21.2575\n",
      "23\n",
      "pnsr: 1708.2606 ssim: 22.2100\n",
      "24\n",
      "pnsr: 1778.8206 ssim: 23.1549\n",
      "25\n",
      "pnsr: 1849.4680 ssim: 24.1001\n",
      "26\n",
      "pnsr: 1919.8329 ssim: 25.0486\n",
      "27\n",
      "pnsr: 1994.3055 ssim: 26.0004\n",
      "28\n",
      "pnsr: 2067.6574 ssim: 26.9467\n",
      "29\n",
      "pnsr: 2139.6869 ssim: 27.8980\n",
      "30\n",
      "pnsr: 2210.4739 ssim: 28.8503\n",
      "31\n",
      "pnsr: 2284.7054 ssim: 29.8036\n",
      "32\n",
      "pnsr: 2355.5984 ssim: 30.7173\n",
      "33\n",
      "pnsr: 2429.1893 ssim: 31.6716\n",
      "34\n",
      "pnsr: 2498.0192 ssim: 32.5393\n",
      "35\n",
      "pnsr: 2568.3666 ssim: 33.4121\n",
      "36\n",
      "pnsr: 2641.2074 ssim: 34.3508\n",
      "37\n",
      "pnsr: 2715.3134 ssim: 35.2985\n",
      "38\n",
      "pnsr: 2792.1257 ssim: 36.2466\n",
      "39\n",
      "pnsr: 2861.2180 ssim: 37.1996\n",
      "40\n",
      "pnsr: 2936.0264 ssim: 38.1362\n",
      "41\n",
      "pnsr: 3014.2176 ssim: 39.1154\n",
      "42\n",
      "pnsr: 3088.7396 ssim: 40.0797\n",
      "43\n",
      "pnsr: 3158.3864 ssim: 40.9972\n",
      "44\n",
      "pnsr: 3226.9322 ssim: 41.9015\n",
      "45\n",
      "pnsr: 3300.8864 ssim: 42.8592\n",
      "46\n",
      "pnsr: 3371.1267 ssim: 43.7602\n",
      "47\n",
      "pnsr: 3438.2801 ssim: 44.6093\n",
      "48\n",
      "pnsr: 3507.9319 ssim: 45.5470\n",
      "49\n",
      "pnsr: 3576.3607 ssim: 46.4360\n",
      "50\n",
      "pnsr: 3647.3632 ssim: 47.3649\n",
      "51\n",
      "pnsr: 3721.8080 ssim: 48.3238\n",
      "52\n",
      "pnsr: 3794.0413 ssim: 49.2397\n",
      "53\n",
      "pnsr: 3864.2536 ssim: 50.1758\n",
      "54\n",
      "pnsr: 3935.2088 ssim: 51.0899\n",
      "55\n",
      "pnsr: 4004.4959 ssim: 52.0298\n",
      "56\n",
      "pnsr: 4076.9818 ssim: 52.9570\n",
      "57\n",
      "pnsr: 4148.7407 ssim: 53.8831\n",
      "58\n",
      "pnsr: 4220.1257 ssim: 54.8269\n",
      "59\n",
      "pnsr: 4291.7840 ssim: 55.7716\n",
      "60\n",
      "pnsr: 4360.9534 ssim: 56.6754\n",
      "61\n",
      "pnsr: 4432.8444 ssim: 57.6298\n",
      "62\n",
      "pnsr: 4506.3170 ssim: 58.5608\n",
      "63\n",
      "pnsr: 4576.9275 ssim: 59.5119\n",
      "64\n",
      "pnsr: 4648.3363 ssim: 60.4435\n",
      "65\n",
      "pnsr: 4717.4030 ssim: 61.3244\n",
      "66\n",
      "pnsr: 4790.5044 ssim: 62.2465\n",
      "67\n",
      "pnsr: 4861.7701 ssim: 63.1540\n",
      "68\n",
      "pnsr: 4937.0426 ssim: 64.1109\n",
      "69\n",
      "pnsr: 5006.2346 ssim: 64.9576\n",
      "70\n",
      "pnsr: 5077.0041 ssim: 65.8781\n",
      "71\n",
      "pnsr: 5150.2494 ssim: 66.8146\n",
      "72\n",
      "pnsr: 5224.5375 ssim: 67.7690\n",
      "73\n",
      "pnsr: 5301.7795 ssim: 68.7333\n",
      "74\n",
      "pnsr: 5371.9699 ssim: 69.6564\n",
      "75\n",
      "pnsr: 5444.5534 ssim: 70.6057\n",
      "76\n",
      "pnsr: 5516.3087 ssim: 71.5234\n",
      "77\n",
      "pnsr: 5589.8342 ssim: 72.4814\n",
      "78\n",
      "pnsr: 5658.9251 ssim: 73.4133\n",
      "79\n",
      "pnsr: 5729.3706 ssim: 74.3307\n",
      "80\n",
      "pnsr: 5799.1283 ssim: 75.2502\n",
      "81\n",
      "pnsr: 5876.0459 ssim: 76.2032\n",
      "82\n",
      "pnsr: 5947.6299 ssim: 77.1162\n",
      "83\n",
      "pnsr: 6021.4298 ssim: 78.0696\n",
      "84\n",
      "pnsr: 6092.0187 ssim: 78.9710\n",
      "85\n",
      "pnsr: 6163.9346 ssim: 79.9336\n",
      "86\n",
      "pnsr: 6234.8149 ssim: 80.8708\n",
      "87\n",
      "pnsr: 6304.7696 ssim: 81.7669\n",
      "88\n",
      "pnsr: 6375.9275 ssim: 82.6803\n",
      "89\n",
      "pnsr: 6449.1041 ssim: 83.6187\n",
      "90\n",
      "pnsr: 6520.4898 ssim: 84.5309\n",
      "91\n",
      "pnsr: 6592.1537 ssim: 85.4812\n",
      "92\n",
      "pnsr: 6661.7514 ssim: 86.4063\n",
      "93\n",
      "pnsr: 6736.5354 ssim: 87.3707\n",
      "94\n",
      "pnsr: 6808.4226 ssim: 88.3066\n",
      "95\n",
      "pnsr: 6881.5278 ssim: 89.2678\n",
      "96\n",
      "pnsr: 6951.1791 ssim: 90.1796\n",
      "97\n",
      "pnsr: 7022.2585 ssim: 91.1306\n",
      "98\n",
      "pnsr: 7094.2901 ssim: 92.0937\n",
      "99\n",
      "pnsr: 7168.9973 ssim: 93.0506\n",
      "100\n",
      "pnsr: 7238.7977 ssim: 93.9724\n",
      "101\n",
      "pnsr: 7317.5537 ssim: 94.9485\n",
      "102\n",
      "pnsr: 7393.5513 ssim: 95.9051\n",
      "103\n",
      "pnsr: 7468.6427 ssim: 96.8731\n",
      "104\n",
      "pnsr: 7541.3995 ssim: 97.8155\n",
      "105\n",
      "pnsr: 7617.0651 ssim: 98.7738\n",
      "106\n",
      "pnsr: 7690.0636 ssim: 99.7331\n",
      "107\n",
      "pnsr: 7763.7570 ssim: 100.6618\n",
      "108\n",
      "pnsr: 7836.7572 ssim: 101.6047\n",
      "109\n",
      "pnsr: 7908.5106 ssim: 102.5524\n",
      "110\n",
      "pnsr: 7980.3643 ssim: 103.4547\n",
      "111\n",
      "pnsr: 8054.3983 ssim: 104.3933\n",
      "112\n",
      "pnsr: 8128.7882 ssim: 105.3610\n",
      "113\n",
      "pnsr: 8200.2976 ssim: 106.2921\n",
      "114\n",
      "pnsr: 8270.7238 ssim: 107.2260\n",
      "115\n",
      "pnsr: 8342.2518 ssim: 108.1768\n",
      "116\n",
      "pnsr: 8411.7900 ssim: 109.0790\n",
      "117\n",
      "pnsr: 8481.5924 ssim: 110.0012\n",
      "118\n",
      "pnsr: 8552.8904 ssim: 110.9268\n",
      "119\n",
      "pnsr: 8626.3669 ssim: 111.8415\n",
      "120\n",
      "pnsr: 8699.8641 ssim: 112.7901\n",
      "121\n",
      "pnsr: 8772.6419 ssim: 113.7208\n",
      "122\n",
      "pnsr: 8848.2158 ssim: 114.6609\n",
      "123\n",
      "pnsr: 8923.0257 ssim: 115.6214\n",
      "124\n",
      "pnsr: 8996.3558 ssim: 116.5722\n",
      "125\n",
      "pnsr: 9070.4817 ssim: 117.5094\n",
      "126\n",
      "pnsr: 9141.3710 ssim: 118.4506\n",
      "127\n",
      "pnsr: 9215.5359 ssim: 119.4217\n",
      "128\n",
      "pnsr: 9290.9255 ssim: 120.3898\n",
      "129\n",
      "pnsr: 9364.4931 ssim: 121.3494\n",
      "130\n",
      "pnsr: 9443.0130 ssim: 122.3276\n",
      "131\n",
      "pnsr: 9518.1354 ssim: 123.2691\n",
      "132\n",
      "pnsr: 9588.6986 ssim: 124.1759\n",
      "133\n",
      "pnsr: 9661.0256 ssim: 125.1076\n",
      "134\n",
      "pnsr: 9730.2256 ssim: 125.9965\n",
      "135\n",
      "pnsr: 9802.8842 ssim: 126.9494\n",
      "136\n",
      "pnsr: 9873.8315 ssim: 127.8398\n",
      "137\n",
      "pnsr: 9941.9501 ssim: 128.6624\n",
      "138\n",
      "pnsr: 10013.9350 ssim: 129.6070\n",
      "139\n",
      "pnsr: 10084.4738 ssim: 130.5493\n",
      "140\n",
      "pnsr: 10154.9302 ssim: 131.4518\n",
      "141\n",
      "pnsr: 10227.8605 ssim: 132.3698\n",
      "142\n",
      "pnsr: 10299.7546 ssim: 133.2773\n",
      "143\n",
      "pnsr: 10368.9219 ssim: 134.1945\n",
      "144\n",
      "pnsr: 10438.3753 ssim: 135.1137\n",
      "145\n",
      "pnsr: 10509.6555 ssim: 135.9898\n",
      "146\n",
      "pnsr: 10579.8475 ssim: 136.8869\n",
      "147\n",
      "pnsr: 10651.3040 ssim: 137.7676\n",
      "148\n",
      "pnsr: 10724.9977 ssim: 138.7069\n",
      "149\n",
      "pnsr: 10803.3298 ssim: 139.6711\n",
      "150\n",
      "pnsr: 10872.7708 ssim: 140.5668\n",
      "151\n",
      "pnsr: 10941.8041 ssim: 141.4676\n",
      "152\n",
      "pnsr: 11010.8689 ssim: 142.3217\n",
      "153\n",
      "pnsr: 11083.5736 ssim: 143.2763\n",
      "154\n",
      "pnsr: 11155.5445 ssim: 144.2232\n",
      "155\n",
      "pnsr: 11225.6201 ssim: 145.1450\n",
      "156\n",
      "pnsr: 11296.6640 ssim: 146.0850\n",
      "157\n",
      "pnsr: 11368.9861 ssim: 147.0353\n",
      "158\n",
      "pnsr: 11437.5192 ssim: 147.9258\n",
      "159\n",
      "pnsr: 11513.8925 ssim: 148.8849\n",
      "160\n",
      "pnsr: 11582.3088 ssim: 149.7801\n",
      "161\n",
      "pnsr: 11658.6681 ssim: 150.7431\n",
      "162\n",
      "pnsr: 11730.8646 ssim: 151.6797\n",
      "163\n",
      "pnsr: 11801.5364 ssim: 152.5941\n",
      "164\n",
      "pnsr: 11871.3328 ssim: 153.5417\n",
      "165\n",
      "pnsr: 11942.3429 ssim: 154.4643\n",
      "166\n",
      "pnsr: 12014.8013 ssim: 155.3962\n",
      "167\n",
      "pnsr: 12086.0333 ssim: 156.3299\n",
      "168\n",
      "pnsr: 12156.9568 ssim: 157.2639\n",
      "169\n",
      "pnsr: 12224.1439 ssim: 158.1991\n",
      "170\n",
      "pnsr: 12295.7359 ssim: 159.1250\n",
      "171\n",
      "pnsr: 12367.2222 ssim: 160.0745\n",
      "172\n",
      "pnsr: 12441.0864 ssim: 161.0242\n",
      "173\n",
      "pnsr: 12513.2805 ssim: 161.9579\n",
      "174\n",
      "pnsr: 12585.1374 ssim: 162.8840\n",
      "175\n",
      "pnsr: 12658.3354 ssim: 163.8185\n",
      "176\n",
      "pnsr: 12731.7995 ssim: 164.7529\n",
      "177\n",
      "pnsr: 12802.2860 ssim: 165.6551\n",
      "178\n",
      "pnsr: 12871.9810 ssim: 166.5504\n",
      "179\n",
      "pnsr: 12942.8777 ssim: 167.4219\n",
      "180\n",
      "pnsr: 13016.5632 ssim: 168.3415\n",
      "181\n",
      "pnsr: 13087.2882 ssim: 169.2100\n",
      "182\n",
      "pnsr: 13157.5685 ssim: 170.0564\n",
      "183\n",
      "pnsr: 13227.1296 ssim: 170.9270\n",
      "184\n",
      "pnsr: 13297.0039 ssim: 171.8281\n",
      "185\n",
      "pnsr: 13367.9283 ssim: 172.7156\n",
      "186\n",
      "pnsr: 13435.8054 ssim: 173.5848\n",
      "187\n",
      "pnsr: 13505.0239 ssim: 174.4475\n",
      "188\n",
      "pnsr: 13572.8525 ssim: 175.2662\n",
      "189\n",
      "pnsr: 13642.1025 ssim: 176.0465\n",
      "190\n",
      "pnsr: 13709.0228 ssim: 176.8110\n",
      "191\n",
      "pnsr: 13776.2651 ssim: 177.6151\n",
      "192\n",
      "pnsr: 13845.6973 ssim: 178.5124\n",
      "193\n",
      "pnsr: 13916.9285 ssim: 179.4359\n",
      "194\n",
      "pnsr: 13986.8374 ssim: 180.3296\n",
      "195\n",
      "pnsr: 14053.6161 ssim: 181.1738\n",
      "196\n",
      "pnsr: 14126.2783 ssim: 182.1088\n",
      "197\n",
      "pnsr: 14195.6085 ssim: 182.9958\n",
      "198\n",
      "pnsr: 14266.9925 ssim: 183.8912\n",
      "199\n",
      "pnsr: 14337.5099 ssim: 184.7987\n",
      "200\n",
      "pnsr: 14405.7210 ssim: 185.6249\n",
      "201\n",
      "pnsr: 14475.0277 ssim: 186.4758\n",
      "202\n",
      "pnsr: 14541.9091 ssim: 187.3022\n",
      "203\n",
      "pnsr: 14609.5998 ssim: 188.1674\n",
      "204\n",
      "pnsr: 14680.4867 ssim: 189.0735\n",
      "205\n",
      "pnsr: 14748.9674 ssim: 189.9400\n",
      "206\n",
      "pnsr: 14821.0658 ssim: 190.8737\n",
      "207\n",
      "pnsr: 14893.0368 ssim: 191.7774\n",
      "208\n",
      "pnsr: 14962.4723 ssim: 192.6137\n",
      "209\n",
      "pnsr: 15031.5704 ssim: 193.4684\n",
      "210\n",
      "pnsr: 15097.3350 ssim: 194.1968\n",
      "211\n",
      "pnsr: 15168.4610 ssim: 195.0821\n",
      "212\n",
      "pnsr: 15239.6649 ssim: 195.9961\n",
      "213\n",
      "pnsr: 15309.2453 ssim: 196.8356\n",
      "214\n",
      "pnsr: 15379.2456 ssim: 197.6906\n",
      "215\n",
      "pnsr: 15448.6555 ssim: 198.5977\n",
      "216\n",
      "pnsr: 15518.9909 ssim: 199.5286\n",
      "217\n",
      "pnsr: 15586.6282 ssim: 200.3573\n",
      "218\n",
      "pnsr: 15655.5782 ssim: 201.2093\n",
      "219\n",
      "pnsr: 15728.2342 ssim: 202.1165\n",
      "220\n",
      "pnsr: 15800.4317 ssim: 203.0284\n",
      "221\n",
      "pnsr: 15871.2781 ssim: 203.9663\n",
      "222\n",
      "pnsr: 15942.8170 ssim: 204.8564\n",
      "223\n",
      "pnsr: 16015.0498 ssim: 205.7549\n",
      "224\n",
      "pnsr: 16084.7021 ssim: 206.6715\n",
      "225\n",
      "pnsr: 16154.5046 ssim: 207.5878\n",
      "226\n",
      "pnsr: 16224.9470 ssim: 208.5037\n",
      "227\n",
      "pnsr: 16295.5681 ssim: 209.4209\n",
      "228\n",
      "pnsr: 16365.8045 ssim: 210.2991\n",
      "229\n",
      "pnsr: 16435.5001 ssim: 211.1650\n",
      "230\n",
      "pnsr: 16506.9975 ssim: 212.0569\n",
      "231\n",
      "pnsr: 16579.8239 ssim: 213.0081\n",
      "232\n",
      "pnsr: 16652.7356 ssim: 213.9582\n",
      "233\n",
      "pnsr: 16726.2947 ssim: 214.9085\n",
      "234\n",
      "pnsr: 16796.4644 ssim: 215.8127\n",
      "235\n",
      "pnsr: 16870.1329 ssim: 216.7453\n",
      "236\n",
      "pnsr: 16941.0410 ssim: 217.6732\n",
      "237\n",
      "pnsr: 17014.6720 ssim: 218.6142\n",
      "238\n",
      "pnsr: 17085.1378 ssim: 219.5232\n",
      "239\n",
      "pnsr: 17156.0756 ssim: 220.4602\n",
      "240\n",
      "pnsr: 17230.5951 ssim: 221.4140\n",
      "241\n",
      "pnsr: 17298.2440 ssim: 222.3179\n",
      "242\n",
      "pnsr: 17369.2327 ssim: 223.2417\n",
      "243\n",
      "pnsr: 17441.1732 ssim: 224.1816\n",
      "244\n",
      "pnsr: 17516.4446 ssim: 225.1251\n",
      "245\n",
      "pnsr: 17592.1155 ssim: 226.0649\n",
      "246\n",
      "pnsr: 17665.3005 ssim: 227.0000\n",
      "247\n",
      "pnsr: 17742.0554 ssim: 227.9568\n",
      "248\n",
      "pnsr: 17815.8172 ssim: 228.9065\n",
      "249\n",
      "pnsr: 17888.3507 ssim: 229.8400\n",
      "250\n",
      "pnsr: 17962.6526 ssim: 230.7619\n",
      "251\n",
      "pnsr: 18033.8541 ssim: 231.6902\n",
      "252\n",
      "pnsr: 18103.3699 ssim: 232.4593\n",
      "253\n",
      "pnsr: 18175.0865 ssim: 233.2837\n",
      "254\n",
      "pnsr: 18244.7646 ssim: 234.0934\n",
      "255\n",
      "pnsr: 18316.4037 ssim: 234.9051\n",
      "256\n",
      "pnsr: 18384.6398 ssim: 235.6019\n",
      "257\n",
      "pnsr: 18453.9445 ssim: 236.3477\n",
      "258\n",
      "pnsr: 18522.9013 ssim: 237.0883\n",
      "259\n",
      "pnsr: 18591.5567 ssim: 237.8419\n",
      "260\n",
      "pnsr: 18661.7040 ssim: 238.6338\n",
      "261\n",
      "pnsr: 18731.9563 ssim: 239.4028\n",
      "262\n",
      "pnsr: 18803.2760 ssim: 240.3271\n",
      "263\n",
      "pnsr: 18872.0636 ssim: 241.1653\n",
      "264\n",
      "pnsr: 18942.1138 ssim: 242.0158\n",
      "265\n",
      "pnsr: 19016.3024 ssim: 242.9302\n",
      "266\n",
      "pnsr: 19085.5442 ssim: 243.7589\n",
      "267\n",
      "pnsr: 19158.1334 ssim: 244.6379\n",
      "268\n",
      "pnsr: 19239.3455 ssim: 245.6182\n",
      "269\n",
      "pnsr: 19319.9886 ssim: 246.6026\n",
      "270\n",
      "pnsr: 19392.4212 ssim: 247.5504\n",
      "271\n",
      "pnsr: 19464.9955 ssim: 248.4933\n",
      "272\n",
      "pnsr: 19535.8633 ssim: 249.4125\n",
      "273\n",
      "pnsr: 19613.2194 ssim: 250.3659\n",
      "274\n",
      "pnsr: 19686.7041 ssim: 251.3029\n",
      "275\n",
      "pnsr: 19752.6562 ssim: 252.2097\n",
      "276\n",
      "pnsr: 19819.3214 ssim: 253.1164\n",
      "277\n",
      "pnsr: 19885.9014 ssim: 254.0224\n",
      "278\n",
      "pnsr: 19952.4788 ssim: 254.9279\n",
      "279\n",
      "pnsr: 20024.1131 ssim: 255.8681\n",
      "280\n",
      "pnsr: 20092.1611 ssim: 256.8140\n",
      "281\n",
      "pnsr: 20160.1554 ssim: 257.7599\n",
      "282\n",
      "pnsr: 20235.2796 ssim: 258.6941\n",
      "283\n",
      "pnsr: 20307.5080 ssim: 259.6244\n",
      "284\n",
      "pnsr: 20385.6429 ssim: 260.5856\n",
      "285\n",
      "pnsr: 20463.5060 ssim: 261.5468\n",
      "286\n",
      "pnsr: 20535.0902 ssim: 262.4872\n",
      "287\n",
      "pnsr: 20607.9761 ssim: 263.4316\n",
      "288\n",
      "pnsr: 20681.1874 ssim: 264.3661\n",
      "289\n",
      "pnsr: 20751.6409 ssim: 265.2793\n",
      "290\n",
      "pnsr: 20824.0974 ssim: 266.2271\n",
      "291\n",
      "pnsr: 20898.3229 ssim: 267.1891\n",
      "292\n",
      "pnsr: 20973.6595 ssim: 268.1505\n",
      "293\n",
      "pnsr: 21048.1395 ssim: 269.1137\n",
      "294\n",
      "pnsr: 21123.2626 ssim: 270.0775\n",
      "295\n",
      "pnsr: 21195.1151 ssim: 270.9689\n",
      "296\n",
      "pnsr: 21267.0443 ssim: 271.8632\n",
      "297\n",
      "pnsr: 21338.1908 ssim: 272.7637\n",
      "298\n",
      "pnsr: 21408.9518 ssim: 273.6562\n",
      "299\n",
      "pnsr: 21480.3875 ssim: 274.5666\n",
      "300\n",
      "pnsr: 21552.5109 ssim: 275.4374\n",
      "301\n",
      "pnsr: 21624.8643 ssim: 276.3097\n",
      "302\n",
      "pnsr: 21699.9835 ssim: 277.2661\n",
      "303\n",
      "pnsr: 21771.8322 ssim: 278.2080\n",
      "304\n",
      "pnsr: 21846.0631 ssim: 279.1387\n",
      "305\n",
      "pnsr: 21920.9036 ssim: 280.0722\n",
      "306\n",
      "pnsr: 21991.8651 ssim: 281.0088\n",
      "307\n",
      "pnsr: 22064.5947 ssim: 281.9540\n",
      "308\n",
      "pnsr: 22138.4410 ssim: 282.8828\n",
      "309\n",
      "pnsr: 22209.9140 ssim: 283.7798\n",
      "310\n",
      "pnsr: 22283.8392 ssim: 284.6949\n",
      "311\n",
      "pnsr: 22358.1183 ssim: 285.6262\n",
      "312\n",
      "pnsr: 22432.2286 ssim: 286.5599\n",
      "313\n",
      "pnsr: 22504.6678 ssim: 287.4924\n",
      "314\n",
      "pnsr: 22577.2594 ssim: 288.4253\n",
      "315\n",
      "pnsr: 22650.0926 ssim: 289.3592\n",
      "316\n",
      "pnsr: 22720.9919 ssim: 290.2556\n",
      "317\n",
      "pnsr: 22793.6246 ssim: 291.1682\n",
      "318\n",
      "pnsr: 22865.8577 ssim: 292.1095\n",
      "319\n",
      "pnsr: 22935.0232 ssim: 293.0278\n",
      "320\n",
      "pnsr: 23010.4968 ssim: 293.9797\n",
      "321\n",
      "pnsr: 23081.0813 ssim: 294.8796\n",
      "322\n",
      "pnsr: 23151.4875 ssim: 295.7653\n",
      "323\n",
      "pnsr: 23221.6104 ssim: 296.6016\n",
      "324\n",
      "pnsr: 23292.8290 ssim: 297.4494\n",
      "325\n",
      "pnsr: 23361.4583 ssim: 298.3506\n",
      "326\n",
      "pnsr: 23432.9484 ssim: 299.2842\n",
      "327\n",
      "pnsr: 23501.0574 ssim: 300.1899\n",
      "328\n",
      "pnsr: 23573.5559 ssim: 301.1297\n",
      "329\n",
      "pnsr: 23648.6964 ssim: 302.0728\n",
      "330\n",
      "pnsr: 23725.4256 ssim: 303.0485\n",
      "331\n",
      "pnsr: 23802.0873 ssim: 304.0239\n",
      "332\n",
      "pnsr: 23872.5921 ssim: 304.9213\n",
      "333\n",
      "pnsr: 23943.5821 ssim: 305.8375\n",
      "334\n",
      "pnsr: 24013.0285 ssim: 306.5428\n",
      "335\n",
      "pnsr: 24077.2903 ssim: 307.1067\n",
      "336\n",
      "pnsr: 24148.6693 ssim: 307.8658\n",
      "337\n",
      "pnsr: 24220.9145 ssim: 308.7597\n",
      "338\n",
      "pnsr: 24294.5201 ssim: 309.6665\n",
      "339\n",
      "pnsr: 24364.5172 ssim: 310.5101\n",
      "340\n",
      "pnsr: 24438.2364 ssim: 311.4439\n",
      "341\n",
      "pnsr: 24509.5378 ssim: 312.3652\n",
      "342\n",
      "pnsr: 24582.7778 ssim: 313.2803\n",
      "343\n",
      "pnsr: 24656.3909 ssim: 314.1986\n",
      "344\n",
      "pnsr: 24729.8003 ssim: 315.1165\n",
      "345\n",
      "pnsr: 24802.9086 ssim: 316.0350\n",
      "346\n",
      "pnsr: 24878.6884 ssim: 316.9964\n",
      "347\n",
      "pnsr: 24954.4803 ssim: 317.9569\n",
      "348\n",
      "pnsr: 25026.3727 ssim: 318.8624\n",
      "349\n",
      "pnsr: 25099.3128 ssim: 319.7966\n",
      "350\n",
      "pnsr: 25171.3889 ssim: 320.7221\n",
      "351\n",
      "pnsr: 25241.6248 ssim: 321.6496\n",
      "352\n",
      "pnsr: 25312.4994 ssim: 322.5830\n",
      "353\n",
      "pnsr: 25382.7149 ssim: 323.4174\n",
      "354\n",
      "pnsr: 25452.6065 ssim: 324.2578\n",
      "355\n",
      "pnsr: 25524.2846 ssim: 325.1574\n",
      "356\n",
      "pnsr: 25597.4633 ssim: 326.0985\n",
      "357\n",
      "pnsr: 25669.1476 ssim: 327.0155\n",
      "358\n",
      "pnsr: 25737.5004 ssim: 327.7954\n",
      "359\n",
      "pnsr: 25810.7261 ssim: 328.7097\n",
      "360\n",
      "pnsr: 25884.1165 ssim: 329.6284\n",
      "361\n",
      "pnsr: 25955.7049 ssim: 330.5698\n",
      "362\n",
      "pnsr: 26028.6900 ssim: 331.5026\n",
      "363\n",
      "pnsr: 26102.1857 ssim: 332.4370\n",
      "364\n",
      "pnsr: 26175.0021 ssim: 333.3557\n",
      "365\n",
      "pnsr: 26247.5356 ssim: 334.2716\n",
      "366\n",
      "pnsr: 26317.3702 ssim: 335.1665\n",
      "367\n",
      "pnsr: 26386.7685 ssim: 336.0386\n",
      "368\n",
      "pnsr: 26457.0429 ssim: 336.9425\n",
      "369\n",
      "pnsr: 26527.9674 ssim: 337.8451\n",
      "370\n",
      "pnsr: 26601.5046 ssim: 338.7860\n",
      "371\n",
      "pnsr: 26674.7711 ssim: 339.7168\n",
      "372\n",
      "pnsr: 26746.8900 ssim: 340.6508\n",
      "373\n",
      "pnsr: 26822.2435 ssim: 341.5942\n",
      "374\n",
      "pnsr: 26896.7021 ssim: 342.5182\n",
      "375\n",
      "pnsr: 26971.0646 ssim: 343.4431\n",
      "376\n",
      "pnsr: 27044.4876 ssim: 344.3730\n",
      "377\n",
      "pnsr: 27115.0801 ssim: 345.2787\n",
      "378\n",
      "pnsr: 27185.2702 ssim: 346.1830\n",
      "379\n",
      "pnsr: 27257.8118 ssim: 347.1088\n",
      "380\n",
      "pnsr: 27330.1039 ssim: 348.0311\n",
      "381\n",
      "pnsr: 27405.1493 ssim: 348.9819\n",
      "382\n",
      "pnsr: 27479.8088 ssim: 349.9206\n",
      "383\n",
      "pnsr: 27549.2045 ssim: 350.8447\n",
      "384\n",
      "pnsr: 27622.3117 ssim: 351.7447\n",
      "385\n",
      "pnsr: 27695.5708 ssim: 352.6512\n",
      "386\n",
      "pnsr: 27765.6425 ssim: 353.5776\n",
      "387\n",
      "pnsr: 27834.8536 ssim: 354.4976\n",
      "388\n",
      "pnsr: 27904.0439 ssim: 355.4172\n",
      "389\n",
      "pnsr: 27978.7937 ssim: 356.3524\n",
      "390\n",
      "pnsr: 28053.0700 ssim: 357.2897\n",
      "391\n",
      "pnsr: 28126.8902 ssim: 358.2532\n",
      "392\n",
      "pnsr: 28200.9686 ssim: 359.2169\n",
      "393\n",
      "pnsr: 28274.2261 ssim: 360.1852\n",
      "394\n",
      "pnsr: 28347.4585 ssim: 361.1528\n",
      "395\n",
      "pnsr: 28420.8929 ssim: 362.0741\n",
      "396\n",
      "pnsr: 28494.4549 ssim: 362.9991\n",
      "397\n",
      "pnsr: 28571.2491 ssim: 363.9593\n",
      "398\n",
      "pnsr: 28645.2118 ssim: 364.8963\n",
      "399\n",
      "pnsr: 28720.5262 ssim: 365.8422\n",
      "400\n",
      "pnsr: 28795.9277 ssim: 366.7913\n",
      "401\n",
      "pnsr: 28868.1381 ssim: 367.7315\n",
      "402\n",
      "pnsr: 28939.9703 ssim: 368.6673\n",
      "403\n",
      "pnsr: 29013.4390 ssim: 369.6080\n",
      "404\n",
      "pnsr: 29087.1908 ssim: 370.5479\n",
      "405\n",
      "pnsr: 29160.7588 ssim: 371.4337\n",
      "406\n",
      "pnsr: 29234.8194 ssim: 372.3374\n",
      "407\n",
      "pnsr: 29309.0187 ssim: 373.2656\n",
      "408\n",
      "pnsr: 29382.4135 ssim: 374.1897\n",
      "409\n",
      "pnsr: 29454.5088 ssim: 375.0613\n",
      "410\n",
      "pnsr: 29530.2134 ssim: 376.0324\n",
      "411\n",
      "pnsr: 29600.7858 ssim: 376.9504\n",
      "412\n",
      "pnsr: 29676.0690 ssim: 377.9227\n",
      "413\n",
      "pnsr: 29750.8456 ssim: 378.8656\n",
      "414\n",
      "pnsr: 29824.3429 ssim: 379.8078\n",
      "415\n",
      "pnsr: 29897.3856 ssim: 380.7510\n",
      "416\n",
      "pnsr: 29970.4121 ssim: 381.6949\n",
      "417\n",
      "pnsr: 30041.6889 ssim: 382.5856\n",
      "418\n",
      "pnsr: 30113.4269 ssim: 383.4982\n",
      "419\n",
      "pnsr: 30188.1106 ssim: 384.4351\n",
      "420\n",
      "pnsr: 30261.8062 ssim: 385.3731\n",
      "421\n",
      "pnsr: 30330.5821 ssim: 386.2893\n",
      "422\n",
      "pnsr: 30403.3826 ssim: 387.2157\n",
      "423\n",
      "pnsr: 30474.2929 ssim: 388.1360\n",
      "424\n",
      "pnsr: 30551.9120 ssim: 389.0906\n",
      "425\n",
      "pnsr: 30627.2679 ssim: 390.0425\n",
      "426\n",
      "pnsr: 30703.2084 ssim: 390.9842\n",
      "427\n",
      "pnsr: 30776.1317 ssim: 391.8875\n",
      "428\n",
      "pnsr: 30848.9953 ssim: 392.7836\n",
      "429\n",
      "pnsr: 30925.0026 ssim: 393.7340\n",
      "430\n",
      "pnsr: 30995.0413 ssim: 394.6741\n",
      "431\n",
      "pnsr: 31070.7943 ssim: 395.6185\n",
      "432\n",
      "pnsr: 31147.4070 ssim: 396.5776\n",
      "433\n",
      "pnsr: 31224.3629 ssim: 397.5385\n",
      "434\n",
      "pnsr: 31300.2022 ssim: 398.4763\n",
      "435\n",
      "pnsr: 31376.2582 ssim: 399.4157\n",
      "436\n",
      "pnsr: 31450.8185 ssim: 400.3294\n",
      "437\n",
      "pnsr: 31523.1559 ssim: 401.2768\n",
      "438\n",
      "pnsr: 31598.2324 ssim: 402.2112\n",
      "439\n",
      "pnsr: 31667.6172 ssim: 403.1510\n",
      "440\n",
      "pnsr: 31737.4639 ssim: 404.0914\n",
      "441\n",
      "pnsr: 31814.5817 ssim: 405.0321\n",
      "442\n",
      "pnsr: 31890.0674 ssim: 405.9740\n",
      "443\n",
      "pnsr: 31962.7860 ssim: 406.8704\n",
      "444\n",
      "pnsr: 32036.0506 ssim: 407.7770\n",
      "445\n",
      "pnsr: 32112.9892 ssim: 408.7356\n",
      "446\n",
      "pnsr: 32181.9800 ssim: 409.6540\n",
      "447\n",
      "pnsr: 32258.8988 ssim: 410.6119\n",
      "448\n",
      "pnsr: 32332.0494 ssim: 411.4072\n",
      "449\n",
      "pnsr: 32406.5590 ssim: 412.2777\n",
      "450\n",
      "pnsr: 32482.7299 ssim: 413.2354\n",
      "451\n",
      "pnsr: 32559.1757 ssim: 414.1922\n",
      "452\n",
      "pnsr: 32632.1231 ssim: 415.0940\n",
      "453\n",
      "pnsr: 32705.3839 ssim: 415.9958\n",
      "454\n",
      "pnsr: 32776.1051 ssim: 416.8582\n",
      "455\n",
      "pnsr: 32853.7218 ssim: 417.8154\n",
      "456\n",
      "pnsr: 32928.5319 ssim: 418.7570\n",
      "457\n",
      "pnsr: 33000.3596 ssim: 419.6524\n",
      "458\n",
      "pnsr: 33072.6278 ssim: 420.5640\n",
      "459\n",
      "pnsr: 33144.8227 ssim: 421.4747\n",
      "460\n",
      "pnsr: 33215.8381 ssim: 422.3365\n",
      "461\n",
      "pnsr: 33286.7337 ssim: 423.1921\n",
      "462\n",
      "pnsr: 33357.8033 ssim: 424.0569\n",
      "463\n",
      "pnsr: 33430.1022 ssim: 424.9518\n",
      "464\n",
      "pnsr: 33502.4460 ssim: 425.8463\n",
      "465\n",
      "pnsr: 33574.6654 ssim: 426.7412\n",
      "466\n",
      "pnsr: 33644.1676 ssim: 427.6907\n",
      "467\n",
      "pnsr: 33709.9150 ssim: 428.5934\n",
      "468\n",
      "pnsr: 33780.8473 ssim: 429.5222\n",
      "469\n",
      "pnsr: 33852.8548 ssim: 430.4775\n",
      "470\n",
      "pnsr: 33925.8981 ssim: 431.4369\n",
      "471\n",
      "pnsr: 33996.3568 ssim: 432.3227\n",
      "472\n",
      "pnsr: 34064.6898 ssim: 433.2037\n",
      "473\n",
      "pnsr: 34130.5825 ssim: 434.0456\n",
      "474\n",
      "pnsr: 34201.8965 ssim: 434.9207\n",
      "475\n",
      "pnsr: 34270.5267 ssim: 435.8275\n",
      "476\n",
      "pnsr: 34338.7910 ssim: 436.7863\n",
      "477\n",
      "pnsr: 34406.2767 ssim: 437.7024\n",
      "478\n",
      "pnsr: 34474.4754 ssim: 438.6304\n",
      "479\n",
      "pnsr: 34538.0611 ssim: 439.5303\n",
      "480\n",
      "pnsr: 34607.0359 ssim: 440.4173\n",
      "481\n",
      "pnsr: 34674.7968 ssim: 441.2898\n",
      "482\n",
      "pnsr: 34746.2708 ssim: 442.1616\n",
      "483\n",
      "pnsr: 34818.8131 ssim: 443.0293\n",
      "484\n",
      "pnsr: 34890.9904 ssim: 443.9273\n",
      "[*] pnsr: 71.9402 ssim: 0.9153\n"
     ]
    }
   ],
   "source": [
    "!python precision.py"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "3958c848",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Looking in indexes: http://repo.myhuaweicloud.com/repository/pypi/simple\n",
      "Requirement already satisfied: scikit-image in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (0.17.2)\n",
      "Requirement already satisfied: PyWavelets>=1.1.1 in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from scikit-image) (1.1.1)\n",
      "Requirement already satisfied: networkx>=2.0 in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from scikit-image) (2.6.2)\n",
      "Requirement already satisfied: tifffile>=2019.7.26 in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from scikit-image) (2021.8.8)\n",
      "Requirement already satisfied: matplotlib!=3.0.0,>=2.0.0 in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from scikit-image) (3.1.2)\n",
      "Requirement already satisfied: numpy>=1.15.1 in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from scikit-image) (1.17.5)\n",
      "Requirement already satisfied: imageio>=2.3.0 in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from scikit-image) (2.9.0)\n",
      "Requirement already satisfied: scipy>=1.0.1 in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from scikit-image) (1.3.3)\n",
      "Requirement already satisfied: pillow!=7.1.0,!=7.1.1,>=4.3.0 in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from scikit-image) (7.0.0)\n",
      "Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image) (2.4.7)\n",
      "Requirement already satisfied: cycler>=0.10 in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image) (0.10.0)\n",
      "Requirement already satisfied: python-dateutil>=2.1 in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image) (2.8.2)\n",
      "Requirement already satisfied: kiwisolver>=1.0.1 in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image) (1.1.0)\n",
      "Requirement already satisfied: six in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from cycler>=0.10->matplotlib!=3.0.0,>=2.0.0->scikit-image) (1.16.0)\n",
      "Requirement already satisfied: setuptools in /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages (from kiwisolver>=1.0.1->matplotlib!=3.0.0,>=2.0.0->scikit-image) (52.0.0.post20210302)\n"
     ]
    }
   ],
   "source": [
    "!pip install scikit-image"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "9a9186da",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "/home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.6) or chardet (3.0.4) doesn't match a supported version!\n",
      "  RequestsDependencyWarning)\n",
      "WARNING:tensorflow:\n",
      "The TensorFlow contrib module will not be included in TensorFlow 2.0.\n",
      "For more information, please see:\n",
      "  * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md\n",
      "  * https://github.com/tensorflow/addons\n",
      "  * https://github.com/tensorflow/io (for I/O related ops)\n",
      "If you depend on functionality not listed there, please file an issue.\n",
      "\n",
      "WARNING:tensorflow:From precision.py:91: The name tf.ConfigProto is deprecated. Please use tf.compat.v1.ConfigProto instead.\n",
      "\n",
      "WARNING:tensorflow:From precision.py:98: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.\n",
      "\n",
      "2021-11-17 15:17:23.056367: W tensorflow/core/platform/profile_utils/cpu_utils.cc:98] Failed to find bogomips in /proc/cpuinfo; cannot determine CPU frequency\n",
      "2021-11-17 15:17:23.064228: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0xaaab21d2de90 initialized for platform Host (this does not guarantee that XLA will be used). Devices:\n",
      "2021-11-17 15:17:23.064315: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version\n",
      "WARNING:tensorflow:From precision.py:100: The name tf.placeholder is deprecated. Please use tf.compat.v1.placeholder instead.\n",
      "\n",
      "WARNING:tensorflow:From /home/ma-user/work/model.py:20: The name tf.variable_scope is deprecated. Please use tf.compat.v1.variable_scope instead.\n",
      "\n",
      "WARNING:tensorflow:From /home/ma-user/work/model.py:20: The name tf.AUTO_REUSE is deprecated. Please use tf.compat.v1.AUTO_REUSE instead.\n",
      "\n",
      "WARNING:tensorflow:From /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages/tensorflow_core/contrib/layers/python/layers/layers.py:1057: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version.\n",
      "Instructions for updating:\n",
      "Please use `layer.__call__` method instead.\n",
      "WARNING:tensorflow:From /home/ma-user/work/model.py:11: The name tf.get_variable is deprecated. Please use tf.compat.v1.get_variable instead.\n",
      "\n",
      "WARNING:tensorflow:From precision.py:113: The name tf.trainable_variables is deprecated. Please use tf.compat.v1.trainable_variables instead.\n",
      "\n",
      "WARNING:tensorflow:From precision.py:117: The name tf.train.Saver is deprecated. Please use tf.compat.v1.train.Saver instead.\n",
      "\n",
      "loaded ./checkpoint/decom_net_train/model.ckpt\n",
      "2021-11-17 15:17:29.190183: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SOURCE is null.\n",
      "2021-11-17 15:17:29.190248: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SINK is null.\n",
      "2021-11-17 15:17:29.190595: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node save/restore_all is null.\n",
      "loaded ./checkpoint/illumination_adjust_net_train/model.ckpt\n",
      "2021-11-17 15:17:39.196886: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SOURCE is null.\n",
      "2021-11-17 15:17:39.196943: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SINK is null.\n",
      "2021-11-17 15:17:39.197134: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node save_1/restore_all is null.\n",
      "loaded ./checkpoint/Restoration_net_train/model.ckpt-999\n",
      "2021-11-17 15:17:39.753620: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SOURCE is null.\n",
      "2021-11-17 15:17:39.753703: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SINK is null.\n",
      "2021-11-17 15:17:39.754513: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node save_2/restore_all is null.\n",
      "Start evaluating!\n",
      "0\n",
      "2021-11-17 15:17:42.311098: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SOURCE is null.\n",
      "2021-11-17 15:17:42.311165: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SINK is null.\n",
      "2021-11-17 15:17:53.232593: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SOURCE is null.\n",
      "2021-11-17 15:17:53.232658: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SINK is null.\n",
      "2021-11-17 15:18:03.635923: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SOURCE is null.\n",
      "2021-11-17 15:18:03.636003: W tf_adapter/util/infershape_util.cc:313] The InferenceContext of node _SINK is null.\n",
      "pnsr: 70.2717 ssim: 0.9115\n",
      "1\n",
      "pnsr: 139.2716 ssim: 1.8405\n",
      "2\n",
      "pnsr: 209.6824 ssim: 2.7617\n",
      "3\n",
      "pnsr: 274.6325 ssim: 3.5589\n",
      "4\n",
      "pnsr: 343.9956 ssim: 4.4737\n",
      "5\n",
      "pnsr: 413.1411 ssim: 5.3610\n",
      "6\n",
      "pnsr: 477.1401 ssim: 6.0975\n",
      "7\n",
      "pnsr: 545.5292 ssim: 7.0023\n",
      "8\n",
      "pnsr: 611.4855 ssim: 7.8672\n",
      "9\n",
      "pnsr: 681.6973 ssim: 8.7542\n",
      "10\n",
      "pnsr: 750.7422 ssim: 9.6653\n",
      "11\n",
      "pnsr: 825.7923 ssim: 10.6033\n",
      "12\n",
      "pnsr: 894.3530 ssim: 11.4206\n",
      "13\n",
      "pnsr: 969.8831 ssim: 12.2834\n",
      "14\n",
      "pnsr: 1038.1397 ssim: 13.2215\n",
      "[*] pnsr: 69.2093 ssim: 0.8814\n"
     ]
    }
   ],
   "source": [
    "!python precision.py"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "f632ce6e",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Name: scikit-image\n",
      "Version: 0.17.2\n",
      "Summary: Image processing in Python\n",
      "Home-page: https://scikit-image.org\n",
      "Author: None\n",
      "Author-email: None\n",
      "License: Modified BSD\n",
      "Location: /home/ma-user/miniconda3/envs/TensorFlow-1.15.0/lib/python3.7/site-packages\n",
      "Requires: PyWavelets, pillow, matplotlib, networkx, tifffile, numpy, scipy, imageio\n",
      "Required-by: imgaug\n"
     ]
    }
   ],
   "source": [
    "!pip show scikit-image"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "16f57c2e",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\u001b[33mWARNING: Package(s) not found: OpenCV\u001b[0m\n"
     ]
    }
   ],
   "source": [
    "!pip show OpenCV"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3e5acdfe",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "TensorFlow-1.15.0",
   "language": "python",
   "name": "tensorflow-1.15.0"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
